import request from '@/utils/request';
import { Department } from '@/type/DepartmentType';
import { ResponseType } from '@/type/ResponseType';

enum Enum {
  fetchDepartmentListAPI = '/dep/all'
}

/**
 * @description 获取科室列表的接口
 * */
export const fetchDepartmentListAPI = () => request.get<Department[], ResponseType<Department[]>>(Enum.fetchDepartmentListAPI);